import { createApp } from "vue";
import pinia from "./stores";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import './utils/rem'
import './style.css'
import '@/mock'
import GoodsList from '@/components/GoodsList/index.vue'
import Header from '@/components/Header/index.vue'
import Ad from '@/components/ad/index.vue'
// 1. 引入你需要的组件
//需要用到哪个van组件先在这引入，再app.use
import vant from 'vant';
import { Lazyload } from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';

const app = createApp(App);
app.component('GoodsList',GoodsList)
app.component('Header',Header)
app.component('Ad',Ad)
app.use(pinia);
app.use(router);
app.use(vant)
app.use(Lazyload)
app.use(ElementPlus)

app.mount("#app");
